import java.awt.image.BufferedImage;


public class Tile {
	
	public final int DEFAULT_PIXEL_BASE = 16;
	
	private int colPos;
	private int rowPos;
	private int width;
	private int height;
	
	private boolean north;
	private boolean south;
	private boolean east;
	private boolean west;
	
	private String imagePath;
	
	/**
	 * This default constructor initializes all of the instance variables. 
	 */
	public Tile()
	{
		colPos = 0;
		rowPos = 0;
		width =  DEFAULT_PIXEL_BASE;
		height = DEFAULT_PIXEL_BASE;
			
		north = true;
		south = true;
		east = true;
		west = true;
	}
	
	
	
	public Tile(int row, int col)
	{
		colPos = col;
		rowPos = row;
				
	}
	public String report(){
		String report;
		
		report = "Row = " + rowPos + " Col =  " + colPos + "\n" +
				 "North = " + isDirection(GamePanel.NORTH)  +
				 " | South = " + isDirection(GamePanel.SOUTH) +
				 " | East = " + isDirection(GamePanel.EAST) +
				 " | West = " + isDirection(GamePanel.WEST);
		return report;
	}
		

	public int getCol() {
		return colPos;
	}

	public void setCol(int col) {
		this.colPos = col;
	}

	public int getRow() {
		return rowPos;
	}

	public void setRow(int row) {
		this.rowPos = row;
	}
	
	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public void setNorth(boolean north) {
		this.north = north;
	}

	public void setSouth(boolean south) {
		this.south = south;
	}

	public void setEast(boolean east) {
		this.east = east;
	}
	
	public void setWest(boolean west) {
		this.west = west;
	}

	public boolean isDirection(int direction){
		boolean isDirection = false;
		switch(direction){
		case GamePanel.NORTH:
			isDirection = north;
			break;
		case GamePanel.SOUTH:
			isDirection = south;
			break;
		case GamePanel.EAST:
			isDirection = east;
			break;
		case GamePanel.WEST:
			isDirection = west;
			break;
		}
		return isDirection; 
	}//end isDirection

/*
	public BufferedImage getImage() {
		return image;
	}*/



	public void setImage(BufferedImage image) {
	}



	public String getImagePath() {
		return imagePath;
	}



	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

}
